6.1 Area Between Two Curves

Sometimes we are interested in the area between two curves. Figure 6.1 shows projected electric power generation in the U.S. through renewable resources (wind, solar, biofuels, etc.) under two scenarios: with and without government stimulus spending. The area of the shaded region between the two graphs represents the additional energy projected to result from stimulus spending.

Figure 6.1: The area of the shaded region (which has units of power \(\times\) time, or energy) represents the additional energy from renewable generating capacity projected to result from government stimulus spending in 2009–2010. Source: Energy Information Agency.

Now suppose that we are given two functions \(y = f(x)\) and \(y = g(x)\) such that \(f(x) \geq g(x)\) for all \(x\) in an interval \([a, b]\). Then the graph of \(f(x)\) lies above the graph of \(g(x)\) [Figure 6.2], and the area between the graphs is equal to the integral of \(f(x) - g(x)\): \[ \begin{eqnarray} \text{Area between the graphs} & =&\int\limits_a^b f(x)\, \mathrm{d}x - \int\limits_a^b g(x)\, \mathrm{d}x\nonumber\\ & =& \int\limits_a^b \big(f(x) - g(x)\big)\, \mathrm{d}x \end{eqnarray} \]

Figure 6.2 illustrates this formula in the case that both graphs lie above the \(x\)-axis. We see that the region between the graphs is obtained by removing the region under \(y = g(x)\) from the region under \(y = f(x)\).

Figure 6.2: The area between the graphs is a difference of two areas.

358

EXAMPLE 1

Find the area of the region between the graphs of the functions \[ f(x)= x^2-4x+10,\qquad g(x)=4x-x^2,\quad\qquad 1\le x \le 3 \]

Solution  First, we must determine which graph lies on top. Figure 6.3 shows that \(f(x)\ge g(x)\), as we can verify directly by completing the square: \[ f(x)-g(x) = (x^2-4x+10)-(4x-x^2) = 2x^2-8x+10 = 2(x-2)^2 +2 \gt 0 \] Therefore, by Eq. (1), the area between the graphs is \[ \begin{eqnarray*} &&\int\limits_1^3 \Big(f(x)-g(x)\Big) \, \mathrm{d}x=\int\limits_1^3 \big((x^2-4x+10)-(4x-x^2)\big) \, \mathrm{d}x\\ &&\qquad = \int\limits_1^3(2x^2-8x+10)\, \mathrm{d}x = \left.\left(\frac23x^3 - 4x^2+10x \right)\right|_1^3 = 12-\frac{20}3=\frac{16}3 \end{eqnarray*} \]

Figure 6.3: As long as \(f(x) \geq g(x)\) on \([1,3]\), the area between the graphs is given by \(\int \limits_1^3 \big( f(x)-g(x)\big) \ dx \)

Before continuing with more examples, we note that Eq. (1) remains valid whenever \(f(x) \geq g(x)\), even if \(f(x)\) and \(g(x)\) are not assumed to be positive.

Therefore, \[ \boxed{\bbox[#FAF8ED,5pt]{\displaystyle\textrm{Area between the graphs} = \int\limits_a^b (y_{\mathrm{top}}-y_{\mathrm{bot}})\,\mathrm{d}x = \int\limits_a^b \big(f(x)-g(x)\big)\,\mathrm{d}x }} \tag {2}\]

The reason for the validity of this formula is that the area of a region does not change when it is vertically or horizontally translated.

Keep in mind that \((y_{\mathrm{top}}-y_{\mathrm{bot}})\) is the height of a vertical slice of the region.

EXAMPLE 2

Find the area between the graphs of \(f(x) = x^2 - 5x -7\) and \(g(x) = x - 12\) over \([-2,5]\).

Solution First, we must determine which graph lies on top.

Step 1.Sketch the region (especially, find any points of intersection).

We know that \(y=f(x)\) is a parabola with \(y\)-intercept \(-7\) and that \(y=g(x)\) is a line with \(y\)-intercept \(-12\) (Figure 6.4). To determine where the graphs intersect, we observe \[ f(x) - g(x) = (x^2-5x-7) - (x-12) = x^2-6x+5 = (x-1)(x-5) \]

The graphs intersect where \((x-1)(x-5)=0\), that is, at \(x=1\) and \(x=5\).

Step 2.Set up the integrals and evaluate.

We also see that \(f(x)-g(x) \leq 0\) for \(1 \leq x \lt 5\), and thus \[ f(x)\ge g(x) \textrm{ on } [-2,1]\qquad\hbox{and}\qquad g(x)\ge f(x) \textrm{ on } [1,5] \]

359

In Example 2, we found the intersection points of \(y= f(x)\) and \(y=g(x)\) algebraically. For more complicated functions, it may be necessary to use a computer algebra system.

Therefore, we write the area as a sum of integrals over the two intervals: \[ \begin{eqnarray*} \int\limits_{-2}^5 &&(y_{\mathrm{top}} - y_{\mathrm{bot}})\,\mathrm{d}x = \int\limits_{-2}^1 \big(f(x)-g(x)\big)\, \mathrm{d}x + \int\limits_1^5 \big(g(x)-f(x)\big)\, \mathrm{d}x\\ &&\qquad= \int\limits_{-2}^1 \big((x^2-5x-7) - (x-12)\big)\, \mathrm{d}x + \int_1^5 \big((x-12)-(x^2-5x-7)\big)\, \mathrm{d}x\\ &&\qquad=\int\limits_{-2}^1 (x^2-6x+5)\,\mathrm{d}x +\int\limits_1^5 (-x^2+6x-5)\, \mathrm{d}x\\ &&\qquad= \left.\left(\frac13x^3-3x^2+5x\right)\right|_{-2}^1 + \left.\left(-\frac13x^3+3x^2-5x\right)\right|_1^5\\ &&\qquad= \left(\frac73-\frac{(-74)}3\right) + \left(\frac{25}3-\frac{(-7)}3\right) = \frac{113}{3} \end{eqnarray*} \]

Question 6.1 Area between two curves Progress Check Question 1

1RBfZF5unzLEA4VoREyhXWqRbXK03LLsG8u4ZBJYxmLXXzDmbpk8jVuj3q/a4LaHqtCbTRNnFUCvZf2o3Uv4aTcT9Xdjl+rv62ZD5c6zLfmi7/NaEtCBvfIGBJSefoQeRfi3MzxTgzvjMlOhlucM7Q4bhi+6Aupad4uiF3ic8chkFuqKqE7R3yjkf4L89cKTTHf5/Qnz/qN8hgKS
3
Correct.
Try again. Make sure you set up the correct integral. Which function has the larger values on the interval \([-1,1]\)?
Incorrect.

EXAMPLE 3 Calculating Area by Dividing the Region

Find the area of the region bounded by the graphs of \(y={8}/{x^2}\), \(y = 8x\), and \(y = x\).

Solution

Step 1.Sketch the region (especially, find any points of intersection).

The curve \(y={8}/{x^2}\) cuts off a region in the sector between the two lines \(y=8x\) and \(y=x\) (Figure 6.5). We find the intersection of \(y={8}/{x^2}\) and \(y=8x\) by solving \[ \frac{8}{x^2}=8x\quad\Rightarrow\quad x^3=1\quad\Rightarrow\quad x=1 \] and the intersection of \(y={8}/{x^2}\) and \(y=x\) by solving \[ \frac{8}{x^2}=x\quad\Rightarrow\quad x^3=8\quad\Rightarrow\quad x=2 \]

Step 2.Set up the integrals and evaluate.

Figure 6.5 shows that \(y_{\mathrm{bot}}=x\), but \(y_{\mathrm{top}}\) changes at \(x=1\) from \(y_{\mathrm{top}}=8x\) to \(y_{\mathrm{top}}={8}/{x^2}\). Therefore, we break up the regions into two parts, \(A\) and \(B\), and compute their areas separately. \[ \begin{align*} \textrm{Area of \(A\)} &= \int\limits_0^1\left(y_{\mathrm{top}}-y_{\mathrm{bot}}\right) \mathrm{d}x = \int\limits_0^1\left(8x - x\right)\,\mathrm{d}x =\int\limits_0^1 7x \,\mathrm{d}x=\frac72\, x^2\bigg|_0^1 = \frac72\\ \textrm{Area of \(B\)} &= \int\limits_1^2\left(y_{\mathrm{top}}-y_{\mathrm{bot}}\right) \mathrm{d}x = \int\limits_1^2\left(\frac8{x^2} - x\right)\,\mathrm{d}x=\left(-\frac{8}{x} - \frac12 x^2\right)\bigg|_1^2= \frac52 \end{align*} \] The total area bounded by the curves is the sum \(\frac72+\frac52=6\).

Figure 6.5: Area bounded by \(y={8}/{x^2}\), \(y=8x\), and \(y=x\) as a sum of two areas.

Question 6.2 Area between curves Progress check 2

tj1qn0TygTkt8xFmZcfA18SP9Z+jFP96Yyy5MG0pyHuv8tlZwGiK2Jzx7CT7tKjuFKrcgQ0liY8kTk7u5ng9aQlZ03mCul1pMA0ljGAubIByDTH2FuvXVHQHA28BvB4WSqD/50Z5IjefMAlQG4A93WFj0jHO3/+6KYMAuepAoDPPiWfq6HRipbWNuZ9qhYlvYoe9wlke9jbODHZlcqQeO4JWSvT6VD5P/8zNWppyPlSHBYb1jSb5gEdR2f74YXJZVn+BkHgYcE7BFBZIQCT9C3cnunc=
3
Correct.
Try again. First find the intersection of \(y=e^x\) with \(y = 12-e^x\). Then set up the appropriate integral.
Incorrect.

360

Integration Along the y-Axis

Suppose we are given \(x\) as a function of \(y\), say, \(x=g(y)\). What is the meaning of the integral \(\int_c^d g(y)\,\mathrm{d}y\)? This integral can be interpreted as signed area, where regions to the right of the \(y\)-axis have positive area and regions to the left have negative area: \[ \int\limits_c^d g(y)\, \mathrm{d}y = \textrm{signed area between graph and \(y\)-axis for \(c \leq y \leq d\)} \] In Figure 6.6(A), the part of the shaded region to the left of the \(y\)-axis has negative signed area. The signed area of the entire region is \[ \underset{\underset{{{\hbox{area to the left of y-axis}}}}{\hbox{Area to the right of y-axis minus}}}{\underbrace{\int\limits_{-6}^6 (y^2-9)\,\mathrm{d}y}} = \left(\frac13y^3-9y\right)\bigg|_{-6}^6 = 36 \]

More generally, if \(g(y)\ge h(y)\) as in Figure 6.6(B), then the graph of \(x=g(y)\) lies to the right of the graph of \(x=h(y)\). In this case, we write \(x_{\mathrm{right}} = g(y)\) and \(x_{\mathrm{left}} = h(y)\). The formula for area corresponding to Eq. (2) is \[ \boxed{\bbox[#FAF8ED,5pt]{\displaystyle\textrm{Area between the graphs} =\int\limits_c^d (x_{\mathrm{right}}-x_{\mathrm{left}})\,\mathrm{d}y = \int\limits_c^d \big(g(y)-h(y)\big)\, \mathrm{d}y }} \]

EXAMPLE 4

Calculate the area enclosed by the graphs of \(h(y)=y^2-1\) and \(g(y) = y^2-\tfrac18y^4 +1\).

Solution First, we find the points where the graphs intersect by solving \(g(y)=h(y)\) for \(y\): \[ y^2-\frac18y^4 +1 = y^2-1\quad\Rightarrow\quad \frac18y^4-2=0\quad\Rightarrow\quad y=\pm 2 \]

Figure 6.7 shows that the enclosed region stretches from \(y=-2\) to \(y=2\). On this interval, \(g(y)\ge h(y)\). Therefore \(x_{\text{right}}=g(y)\), \(x_{\text{left}}=h(y)\), and \[ x_{\text{right}} - x_{\text{left}} = \left(y^2-\frac18y^4 +1\right) - (y^2-1) = 2-\frac18y^4 \]

361

The enclosed area is \[ \begin{align*} \int\limits_{-2}^2(x_{\text{right}} - x_{\text{left}})\,\mathrm{d}y &= \int\limits_{-2}^2\left(2-\frac18y^4\right)\mathrm{d}y = \left(2y - \frac1{40}y^5\right)\Bigg|_{-2}^2\\ & = \frac{16}5-\left(-\frac{16}5\right)=\frac{32}5 \end{align*} \]

It would be more difficult to calculate the area of the region in Figure 6.7 as an integral with respect to \(x\) because the curves are not graphs of functions of \(x\).

Question 6.3 Area between curves Progress Check Question 3

NvuSvtG0PQrm67oOgG6v/HtC97HYXzZNwIBaPyk/3Tqrl9TdwP7NnsrGED9WOTCYgHTYImMURh6k02vRplp304zpzi6uT+z09fUCp6a/tkAv1dI7Qg/4rEb/FvQR2Ek2s+ueZ3blGCLyd71w4NAQoO5CMpH/nAoLyz2zuylwM+fxsdtMO1x1i17Y9H4=
3
Correct.
Try again. First find the points of intersection between the two curves. Then decide whether to integrate with respect to \(x\) or \(y\).
Incorrect.

6.1.1 Summary